import {marketGet, marketPost, get, post} from '../utils/request'
// 活动管理
// 新增活动
export const adminActivatyAddAPI = (data) => {
    return post('/admin/marketing/marketingActivity/info/save', data)
}
// 更新活动
export const adminActivatyEditAPI = (data) => {
    return post('/admin/marketing/marketingActivity/info/update', data)
}
// 活动列表
export const adminActivatyList = (data) => {
    return post('/admin/marketing/marketingActivity/info/list', data)
}
// 优惠券管理
export const adminCouponList = (data) => {
    return post('/admin/marketing/coupon/info/list', data)
}
// 活动详情
export const adminActivatyInfo = (id) => {
    return get(`/admin/marketing/marketingActivity/info/detail/${id}`)
}
// 更新活动状态
export const adminActivatyStatus = (data) => {
    return post('/admin/marketing/marketingActivity/info/updateStatus', data)
}
// 新增优惠券
export const adminCouponAdd = (data) => {
    return post('/admin/marketing/coupon/info/save', data)
}
// 更新优惠券
export const adminCouponEdit = (data) => {
    return post('/admin/marketing/coupon/info/update', data)
}
// 优惠券详情
export const adminCouponInfo = (id) => {
    return get(`/admin/marketing/coupon/info/detail/${id}`)
}
// 优惠券状态
export const adminCouponStatusAPI = (data) => {
    return post('/admin/marketing/coupon/info/updateStatus', data)
}
